import axios from "axios";

const baseUrl = 'http://localhost:3001/api/category/';
export default {
    all() {
        return axios.get(baseUrl)
    },
    get(id) {
        return axios.get(baseUrl + id)
    },
    delete(id) {
        return axios.delete(baseUrl + id)
    }
}